package com.perceptivesoftware.util;

import java.io.IOException;
import java.io.Writer;

import org.springframework.oxm.XmlMappingException;
import org.springframework.oxm.xstream.XStreamMarshaller;

/**
 * Extend XStream marshaller to provide XML tag
 *
 * <p/>Copyright 2012 Perceptive Software
 * <p/>Confidential and Proprietary
 *
 * @author Sean Langford
 *
 */
public class ContentSpecifyingXStreamMarshaller extends XStreamMarshaller
{
	@Override
	protected void marshalWriter(Object graph, Writer writer) throws XmlMappingException, IOException {
		writer.append("<?xml version=\"1.0\" ?>\n");
		super.marshalWriter(graph, writer);
	}
}
